<?php

include "lib/start.php";

header("Content-type: text/plain");

$sel_news = "SELECT * FROM news WHERE id_news = ".$_POST['id'];
try{
	$res_news = $db->executeQuery($sel_news);
} catch (MySQLException $ex){
	print "Impossibile recuperare la news: ".$ex->getMessage();
	exit;
}
$news = $res_news->fetch_assoc();

print $news['abstract']."|".$news['testo'];
exit;

?>